const fs = require('fs');
const path = require('path');

const file = path.join(__dirname, '../public/version.json');
const version = new Date().getTime();

try {
  fs.writeFileSync(file, JSON.stringify({ version }));
} catch (error) {
  console.log(error);
}
